#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "QDebug"
#include <QMainWindow>
#include "ijkmp.h"

#include <memory>
#include <iostream>
#include <functional>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void initConnect();
    int message_loop(void *);
    int Outputvideo(const Frame *frame);
private slots:
    void onPlayOrPause();
    void onStop();


private:
    Ui::MainWindow *ui;
    std::unique_ptr<ijkmp> mp_=nullptr;
};

#endif // MAINWINDOW_H
